package cn.ibizlab.odoo.core.odoo_gamification.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_gamification.domain.Gamification_badge_user;
import cn.ibizlab.odoo.core.odoo_gamification.filter.Gamification_badge_userSearchContext;

/**
 * 实体[Gamification_badge_user] 服务对象接口
 */

public interface IGamification_badge_userService{
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void updateBatch(List<Gamification_badge_user> gamification_badge_users, int batchSize) ;
     void createBatch(List<Gamification_badge_user> gamification_badge_users, int batchSize) ;
     Gamification_badge_user get(Integer id) ;
     Gamification_badge_user get(Gamification_badge_user gamification_badge_user) ;
     boolean update(Gamification_badge_user gamification_badge_user) ;
     boolean remove(Integer id) ;
     boolean create(Gamification_badge_user gamification_badge_user) ;

    /**
     * 查询集合 默认查询
     */
    Page<Gamification_badge_user> searchDefault(Gamification_badge_userSearchContext context) ;

    /**
     * 根据游戏化徽章查询
     */
     Page<Gamification_badge_user> selectByOdoo_badge(Integer id) ;

    /**
     * 根据游戏化挑战查询
     */
     Page<Gamification_badge_user> selectByOdoo_challenge(Integer id) ;

    /**
     * 根据员工查询
     */
     Page<Gamification_badge_user> selectByOdoo_employee(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Gamification_badge_user> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Gamification_badge_user> selectByOdoo_sender(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Gamification_badge_user> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Gamification_badge_user> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Gamification_badge_user convert2Domain(cn.ibizlab.odoo.core.client.model.Igamification_badge_user model ,Gamification_badge_user domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Igamification_badge_user convert2Model(Gamification_badge_user domain , cn.ibizlab.odoo.core.client.model.Igamification_badge_user model);

}
